package com.authine.cloudpivot.ext.service;

import com.authine.cloudpivot.ext.model.order.OrderGoodsAcceptVO;
import com.authine.cloudpivot.ext.model.order.OrderGoodsReturnsVO;
import com.authine.cloudpivot.ext.dto.voucher.Voucher;

import java.util.List;

/**
 * @Author: liwei
 * @DateTime: 2021/8/12
 * @Description: 订单生成凭证 暂存凭证记录表
 */
public interface OrderCreateVoucher {




    /**
     * 收获生成凭证
     * @param orderGoodsAcceptDtoList 订单收货数据集合
     * @return  生成凭证集合
     */
    List<Voucher> receiveCreateVoucher(List<OrderGoodsAcceptVO> orderGoodsAcceptDtoList);


    /**
     *  退货生成凭证
     * @param orderGoodsReturnsDto 订单退货数据
     * @param toPm
     */
    void returnCreateVoucher(OrderGoodsReturnsVO orderGoodsReturnsDto, Boolean toPm);


}
